<template>
  <div class="box">
    <img src="../../assets/images/error_images/404.png" alt="">
    <button @click="goHome" style="height: 40px;">首页</button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
let $router = useRouter()
const goHome = ()=>{
  $router.push('/home')
}
</script>

<style scoped  lang="scss">
.box{
  width: 100vw;
  height: 100vh;
  background: linear-gradient(45deg, blue, green);
  display: flex;
  justify-content: center;
  align-items: center;
  img{
    width:800px;
    height: 400px;
    margin-top: 50px;

  }
  button{
    margin-top: 50px;
    margin-left: -200px;
  }
}
</style>
